package com.sunagy.demand.backend.repository;

import com.sunagy.demand.backend.entity.CustomerProgress;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * desc：#TODO fill me ！
 * author：三餘無夢生
 * date：2018/4/12
 * time：下午4:06
 */
public interface CustomerProgressRepository extends JpaRepository<CustomerProgress,Integer>{
    List<CustomerProgress> findAllByEnable(Boolean enable);
    List<CustomerProgress> findAllByEnableAndUserid(Boolean enable, Integer userId);

    CustomerProgress findByUseridAndProgressName(Integer userId,String pname);

}
